<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
		
 </body>
</html>
<script>
	//join(分隔符)数组转化为字符串
	var arr = ['a','b','c','d','e','f'];
	var a = arr.join('-');
	console.log(a);
	console.log(typeof a);
	
	//可以不写分隔符 默认用逗号分隔
	var b = arr.join();
	console.log(b);
	
	//合并为一个字符串
	var c = arr.join('');
	console.log(c);
</script>
